package com.dcivision.framework;

/**
 * @deprecated This class has deprecated.
 */
public class FullTextIndexFactory {

  public static final String REVISION = "$Revision: 1.3 $";

  private static IndexManager im = null;

  public FullTextIndexFactory() {
  }

  public static void init(String indexPath) throws ApplicationException {
    im = new IndexManager(indexPath);
    try {
      im.start();
    } catch (Exception e) {
      throw new ApplicationException(ErrorConstant.INDEX_CANNOT_OPEN_INDEX_FILE, e);
    }
  }

  public static IndexManager getInstance() {
    return(im);
  }
}